package com.tianyu.inspection.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**********************************
 * @Author YSW
 * @Description 上传文件
 * @Date 2021/1/20 - 15:44
 **********************************/

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class UploadFile {

    @TableId
    private Integer id;
    private String url;
    private Long size;
    private String type;
    private Integer category;
    private Integer state;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    private Integer projectId;
}
